tools/hotplug: Fix proxy arp messing about to use correct device
authorMichael Young <m.a.young@durham.ac.uk>
Tue, 1 Feb 2011 19:16:28 +0000 (19:16 +0000)
committerMichael Young <m.a.young@durham.ac.uk>
Tue, 1 Feb 2011 19:16:28 +0000 (19:16 +0000)
Fix an anomaly in /etc/xen/scripts/network-route.

Currently this script contains
  netdev=${netdev:-eth${vifnum}}
ie. netdev is set to eth${vifnum} by default. Unfortunately vifnum
is not set anywhere in the xen code so the default is actually the
broken "eth".  And anyway the vif number (which is what vifnum ought
to be) is not relevant.

The patch changes the default to eth0 (which is what the comment at
the top of the file says it should be).

Signed-off-by: Michael Young <m.a.young@durham.ac.uk>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/hotplug/Linux/network-route

index 0cf85b526a6af366e2801ac77a45adf259f0a0b6..8f6a1be9fc988997222fd1bba39a0e749d7f8ca4 100644 (file)
@@ -22,7 +22,7 @@ dir=$(dirname "$0")
 
 evalVariables "$@"
 
-netdev=${netdev:-eth${vifnum}}
+netdev=${netdev:-eth0}
 
 echo 1 >/proc/sys/net/ipv4/ip_forward
 echo 1 >/proc/sys/net/ipv4/conf/${netdev}/proxy_arp